package tpju;



/**
 * Write a description of class Responsable here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Responsable
{
   // instance variables - replace the example below with your own
   private String nom ;
   private int age;

   /**
    * Constructor for objects of class Responsable
    */
   public Responsable(String str, int age)
   {
       // initialise instance variables
       this.nom = str;
       this.age=age;
   }
   
   public String getNom(){
       return this.nom;
   }
   
   public void setNom(String s){
       this.nom=s;
   }
      
   public int getAge(){
       return this.age;
   }
   
   public void setAge(int age){
       this.age=age;
   }
   
   public void changeAttr(Magasin m){
       m.sampleMethod();
       m.setNom(m.getNom()+" - "+this.nom);
   }
}